package com.appkubes.mall.restful.fintech.user.baseInfo.dao;

import com.appkubes.mall.core.pojo.FintechUserBaseInfoMapper;
import com.appkubes.mall.restful.fintech.user.baseInfo.entity.vo.UserBaseInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserBaseInfoDao extends FintechUserBaseInfoMapper {

    @Select("INSERT INTO fintech_user_base_info (user_key, phone, ref_user_id, ref_user_name, ref_user_phone, ref_channel_name," +
            " user_device, create_time, update_time) VALUES(#{baseInfo.userKey}, #{baseInfo.phone}, #{baseInfo.refUserId}," +
            " #{baseInfo.refUserName}, #{baseInfo.refUserPhone}, #{baseInfo.refChannelName}, " +
            " #{baseInfo.userDevice}, #{baseInfo.createTime}, #{baseInfo.updateTime})")
    int insert(@Param("baseInfo")UserBaseInfoVO userBaseInfoVO);
}
